package io.scnb.lesson003.demo2.test3;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class Service2 {
    
    public void m1() {
        System.out.println("Service2 m1");
        this.service1.m1();
    }
    
    private Service1 service1;
    
    @Autowired
    public void setService1(Service1 service1) {
        this.service1 = service1;
    }
}
